﻿using SqlSugar;
using System;

namespace Raffles.OA.Data
{
    /// <summary>
    /// 日 期：2024/5/28 10:26:59
    /// 描 述：任务调度实体类
    /// </summary>
    [SugarTable("Sys_AutoJob")]
    public class AutoJob : BaseEntity
    {
        /// <summary>
        /// 任务组名称
        /// </summary>
        public string JobGroupName { get; set; }
        /// <summary>
        /// 任务名称
        /// </summary>
        public string JobName { get; set; }
        /// <summary>
        /// 任务状态
        /// </summary>
        public int? JobStatus { get; set; }
        /// <summary>
        /// DLL名称
        /// </summary>
        public string DllName { get; set; }
        /// <summary>
        /// 类名
        /// </summary>
        public string ClassName { get; set; }
        /// <summary>
        /// 方法名
        /// </summary>
        public string FunctionName { get; set; }
        /// <summary>
        /// Cron表达式
        /// </summary>
        public string CronExpression { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 下一次执行时间
        /// </summary>
        public DateTime? NextStartTime { get; set; }
        /// <summary>
        /// 备注说明
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 启用标志，默认为：true
        /// </summary>
        public bool? EnabledMark { get; set; } = true;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedOn { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public int? CreatedBy { get; set; }
        /// <summary>
        /// 编辑时间
        /// </summary>
        public DateTime? UpdatedOn { get; set; }
        /// <summary>
        /// 编辑人
        /// </summary>
        public int? UpdatedBy { get; set; }
    }
}
